package net.sx.minemodule.mvp.bean;

import java.util.List;

/**
 * 描述: 订单申请售后
 * author:胡邦茂
 * CreateDate:2019年07月11日 15:28
 */
public class OrderSalesReqBean {

    /**
     * id : 41
     * productId : 26
     * pic : http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg
     * productName : 华为 HUAWEI P20
     * num : 1
     * salePrice : 37
     * distributionType : false
     * returnPoint : 0
     * returnCommission : 100
     * returnAmount : 3586
     * couponAmount : 10
     * attrs : [{"name":"测试","value":"16GB"}]
     */

    private int id;
    private int productId;
    private String pic;
    private String productName;
    private int num;
    private int salePrice;
    private boolean distributionType;
    private int returnPoint;
    private int returnCommission;
    private int returnAmount;
    private int couponAmount;
    private List<AttrsBean> attrs;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(int salePrice) {
        this.salePrice = salePrice;
    }

    public boolean isDistributionType() {
        return distributionType;
    }

    public void setDistributionType(boolean distributionType) {
        this.distributionType = distributionType;
    }

    public int getReturnPoint() {
        return returnPoint;
    }

    public void setReturnPoint(int returnPoint) {
        this.returnPoint = returnPoint;
    }

    public int getReturnCommission() {
        return returnCommission;
    }

    public void setReturnCommission(int returnCommission) {
        this.returnCommission = returnCommission;
    }

    public int getReturnAmount() {
        return returnAmount;
    }

    public void setReturnAmount(int returnAmount) {
        this.returnAmount = returnAmount;
    }

    public int getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(int couponAmount) {
        this.couponAmount = couponAmount;
    }

    public List<AttrsBean> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<AttrsBean> attrs) {
        this.attrs = attrs;
    }

    public static class AttrsBean {
        /**
         * name : 测试
         * value : 16GB
         */

        private String name;
        private String value;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    @Override
    public String toString() {
        return "OrderSalesReqBean{" +
                "id=" + id +
                ", productId=" + productId +
                ", pic='" + pic + '\'' +
                ", productName='" + productName + '\'' +
                ", num=" + num +
                ", salePrice=" + salePrice +
                ", distributionType=" + distributionType +
                ", returnPoint=" + returnPoint +
                ", returnCommission=" + returnCommission +
                ", returnAmount=" + returnAmount +
                ", couponAmount=" + couponAmount +
                ", attrs=" + attrs +
                '}';
    }
}
